const express = require('express')
const {getAllGoods,goodsDetail,goodscart,cartgoods} = require('../controller/goods')

const router = express.Router()

router.get('/getAllGoods/:page/:size', getAllGoods)

router.get('/goodsDetail/:id', goodsDetail)

router.get('/goodscart/:_id', goodscart)

router.get('/cartgoods', cartgoods)

module.exports = router